package com.li.learning.train.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.li.learning.train.model.dto.CommitTrainDto;
import com.li.learning.train.model.vo.QuestionResultVo;
import com.li.learning.train.model.vo.ResultVo;
import com.li.learning.train.model.vo.TrainVo;
import com.our.learning.infrastructure.po.Train;

import java.util.List;

/**
 * @author : leapzed
 * @date : 2023-06-24
 */
public interface TrainService extends IService<Train> {

    /**
     * 根据该生的历史错题，生成一套练习题
     * @param stuId
     * @return
     */
    TrainVo generateTrain(Integer stuId);

    /**
     * 提交练习题、自动改分并返回结果
     * @param dto
     * @return
     */
    ResultVo submitTrain(CommitTrainDto dto);

    Object getList(Integer pageNum, Integer pageSize, Integer stuId);

    /**
     * 获取巩固训练详情
     * @param trainId
     * @return
     */
    List<QuestionResultVo> getDetail(Integer trainId);
}
